package com.zrwl.poscloud.xo.service;
import com.zrwl.poscloud.base.entity.Dept;
import com.zrwl.poscloud.base.entity.Grade;
import com.zrwl.poscloud.base.superI.SuperService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import java.util.List;

import com.zrwl.poscloud.xo.vo.AdminVO;
import com.zrwl.poscloud.xo.vo.GradeVO;
/**
 * 班级 服务类
 *
 * @author 刘思童 AutoGenerate
 * @date 2023-02-27
 */
public interface GradeService extends SuperService<Grade> {

    public IPage<GradeVO> getPageList(GradeVO gradeVO);
    public List<GradeVO> getAllList(GradeVO gradeVO);
    public String add(GradeVO gradeVO, String adminUid);
    public String edit(GradeVO gradeVO);
    public String delete(GradeVO gradeVO);
    public Grade getGradeByName(String companyCode, String deptName);
    Grade getGradeByDeptCode(String companyCode);
    public String delClassAndDept(GradeVO gradeVO);

    /**
     * 处理毕业
     *
     * @param gradeVO
     * @param adminVO
     * @return
     */
    String editLeave(GradeVO gradeVO, AdminVO adminVO);
    Dept getDeptByUid(String gradeUid);

    public String addClassByDept(GradeVO gradeVO);

    boolean verifyDept(String deptUid);
}
